package la.iok.hzsvn.lewin.movie.core.shopmovie.param;

import java.util.Objects;

/**
 * 优惠券基础过滤参数
 */
public class CouponBaseFilterParam {
    /**
     * 发放优惠卷的店铺。
     */
    private Long orgUnitId;
    /**
     * 优惠券名称,模糊查询
     */
    private String name;
    /**
     * 优惠券类型。1：折扣卷，2：金额卷
     */
    private Integer type;

    public Long getOrgUnitId() {
        return orgUnitId;
    }

    public void setOrgUnitId(Long orgUnitId) {
        this.orgUnitId = orgUnitId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof CouponBaseFilterParam)) return false;
        CouponBaseFilterParam that = (CouponBaseFilterParam) o;
        return Objects.equals(orgUnitId, that.orgUnitId) && Objects.equals(name, that.name) && Objects.equals(type, that.type);
    }

    @Override
    public int hashCode() {
        return Objects.hash(orgUnitId, name, type);
    }

    @Override
    public String toString() {
        return "CouponBaseFilterParam{" +
                "orgUnitId=" + orgUnitId +
                ", name='" + name + '\'' +
                ", type=" + type +
                '}';
    }
}
